]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appDisplay: sync page when changing adjustment
authorCarlos Soriano <carlos.soriano89@gmail.com>
Thu, 14 Aug 2014 13:36:19 +0000 (15:36 +0200)
committerCarlos Soriano <carlos.soriano89@gmail.com>
Fri, 15 Aug 2014 21:07:25 +0000 (23:07 +0200)
We were setting the value of adjustment on size changes, but we weren't
changing the page value, so adjustment and page value was not in sync.

To fix it, make sure adjustment of the view is in sync with the page
value.

https://bugzilla.gnome.org/show_bug.cgi?id=734680

js/ui/appDisplay.js

index c32acb6ad5e7bd4e16efc1703efeefef561bbc91..0bf435e2531a0d2d9ac85ac7820c09e9fe5367bc 100644 (file)
@@ -630,6 +630,7 @@ const AllView = new Lang.Class({
 
         if (this._availWidth != availWidth || this._availHeight != availHeight || oldNPages != this._grid.nPages()) {
             this._adjustment.value = 0;
+            this._currentPage = 0;
             Meta.later_add(Meta.LaterType.BEFORE_REDRAW, Lang.bind(this,
                 function() {
                     this._pageIndicators.setNPages(this._grid.nPages());